package de.openlaboratory.xmleditor.servlet.view.menu;

import java.util.ArrayList;
import java.util.List;

public class MenuConfiguration
{
	List<MenuItem> menuItems;
	
	public MenuConfiguration()
	{
		menuItems = new ArrayList<MenuItem>();
		
		menuItems.add(new MenuItem ("edit", "Edit File", "edit"));
		menuItems.add(new MenuItem ("xmltest", "Xml Test", "xml"));
	}

	public MenuItem[] getMenuItems()
	{
		MenuItem[] items =  menuItems.toArray(new MenuItem[menuItems.size()]);
		
		return items;
	}
}